package pers.ree.demo.designpattern.factory.factorymethod;

public class Cat extends AbstractAnimal {

    public Cat(String color) {
        this.color = color;
    }

    @Override
    public void setPrice(long price) {
        this.price = price * 10;
    }

    @Override
    public void printAnimalInfo() {
        System.out.println("cat color is " + color + ", price is " + price);
    }
}
